﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;

namespace _21_File
{
    class Program
    {
        static void Main(string[] args)
        {
            //File.Create(@"E:\TestCode\CS_Learn\07-Enum\txt.txt");
            //Console.WriteLine("创建成功");

            //File.Delete(@"E:\TestCode\CS_Learn\07-Enum\txt.txt");
            //Console.WriteLine("删除成功");

            string contents = File.ReadAllText(@"E:\TestCode\CS_Learn\07-Enum\program.cs",Encoding.Default);
            Console.WriteLine(contents);
            Console.ReadKey();
        }
    }
}
